@use "../abstracts/mixins";

a.jenkins-badge,
button.jenkins-badge {
  pointer-events: auto;
}

.jenkins-badge {
  @include mixins.item;

  --item-background: color-mix(
    in sRGB,
    var(--color, var(--accent-color)) 7.5%,
    var(--background)
  );
  --item-background--hover: color-mix(
    in sRGB,
    var(--color, var(--accent-color)) 12.5%,
    var(--background)
  );
  --item-background--active: color-mix(
    in sRGB,
    var(--color, var(--accent-color)) 17.5%,
    var(--background)
  );
  --item-box-shadow--focus: color-mix(
    in sRGB,
    var(--color, var(--accent-color)) 10%,
    var(--background)
  );

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 400;
  min-height: 20px;
  min-width: 20px;
  padding: 0 0.375rem;
  gap: 0.35rem;
  pointer-events: none;
  text-box: cap alphabetic;

  &::before {
    border: var(--jenkins-border-width) solid
      oklch(from currentColor l c h / 0.17);
    background-clip: padding-box;
  }

  svg {
    width: 0.75rem;
    height: 0.75rem;
  }
}
